//
//  FCFeedBackViewController.swift
//  FinancialConsulting
//
//  Created by Max on 2017/10/31.
//  Copyright © 2017年 com.vector. All rights reserved.
//

import UIKit

class FCFeedBackViewController: FCViewController {
    
    @IBOutlet weak var oneButton: UIButton!
    @IBOutlet weak var twoButton: UIButton!
    @IBOutlet weak var threeButton: UIButton!
    override func viewDidLoad() {
        super.viewDidLoad()

   
        self.title = "意见反馈"
        
    
        self.oneButton.setBackgroundImage(UIImage(named:"27"),for: .normal)
        self.twoButton.setBackgroundImage(UIImage(named:"27"),for: .normal)
        self.threeButton.setBackgroundImage(UIImage(named:"27"),for: .normal)
        self.oneButton.setBackgroundImage(UIImage(named:"28"),for: .selected)
        self.twoButton.setBackgroundImage(UIImage(named:"28"),for: .selected)
        self.threeButton.setBackgroundImage(UIImage(named:"28"),for: .selected)

    }
    
  
    @IBAction func oneButtonAction(_ sender: UIButton) {
    
        
        if oneButton == sender{
            
        }else {
            
            self.oneButton.setBackgroundImage(UIImage(named:"27"),for: .normal)
            sender.setBackgroundImage(UIImage(named:"28"),for: .normal)
            
            
        }
        
        oneButton = sender
        
        if twoButton == sender{
            
        }else {
            
            self.twoButton.setBackgroundImage(UIImage(named:"27"),for: .normal)
            sender.setBackgroundImage(UIImage(named:"28"),for: .normal)
        }
        twoButton = sender
        
        if threeButton == sender{
        
        }else {
            
            self.threeButton.setBackgroundImage(UIImage(named:"27"),for: .normal)
            sender.setBackgroundImage(UIImage(named:"28"),for: .normal)
        }
        
        threeButton = sender

    
    }
    @IBAction func segestionAction(_ sender: Any) {
        
          _ = self.navigationController?.popViewController(animated: true)
        
    }
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        self.view.endEditing(true)
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

   
}
